Release 10.1A: OpenEdge Development:
Progress 4GL Reference
WIDGET-HANDLE function
Converts a string representation of a widget handle to a valid widget handle.
Syntax
Caution: Use this function only to convert a widget handle previously stored as a string value back to a valid widget handle. If you convert an arbitrary string to widget handle using this function and then reference the new widget handle, a system error will occur. The VALID-HANDLE function references a widget handle to validate the handle. If you use the VALID-HANDLE function to validate a widget handle generated from an arbitrary string value, a system error will occur.
widget-handle-stringA string representation of a widget handle. Since widget handles are integer values, the string must contain only numeric characters.
ExampleThe following procedure creates a frame, stores the widget handle of the frame as a string value, deletes the frame, converts the string representation of the frame widget handle back to a widget handle, and then tests if the widget handle is valid:
The VALID-HANDLE function returns a FALSE value because the frame was deleted and the widget handle is no longer valid.
Notes
See also
CREATE widget statement, DATE function, DECIMAL function, INTEGER function, STRING function, VALID-HANDLE function
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |